home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / locking.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  618 b   |  26 lines

  1. /*  locking.h
  2.  
  3.     Definitions for mode parameter of locking() function.
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 9.0
  9.  *
  10.  *      Copyright (c) 1990, 1998 by Borland International
  11.  *      All Rights Reserved.
  12.  *
  13.  */
  14. /* $Revision:   9.0  $ */
  15.  
  16. #if !defined(__LOCKING_H)
  17. #define __LOCKING_H
  18.  
  19. #define LK_UNLCK  0     /* unlock file region */
  20. #define LK_LOCK   1     /* lock file region, try for 10 seconds */
  21. #define LK_NBLCK  2     /* lock file region, don't block */
  22. #define LK_RLCK   3     /* same as LK_LOCK */
  23. #define LK_NBRLCK 4     /* same as LK_NBLCK */
  24.  
  25. #endif  /* __LOCKING_H */
  26.